package com.baijia.dao.po;

import java.io.Serializable;
import java.util.Date;

import lombok.Data;

/**
 * Created by dudu on 2016/11/3.
 */
@Data
public class UserLoginLog implements Serializable {

    private Integer id;
    private Long userId;
    private String loginIp;
    private Date loginTime;
    private String compaignId;
    private Integer userRole;
    private Integer statAreaId;
    private String statIp;
    private Integer statClient;
    private String statChannel;
    private String statDevice;
    private String version;
    private String statMac;
    private String statImei;
    private int authType;


    public enum AuthType {
        PASSWORD(1, "用户名密码登录"),
        COOKIE(2, "通过cookie登录");

        private int code;
        private String msg;

        AuthType(int code, String msg){
            this.code = code;
            this.msg = msg;
        }

        public int getCode() {
            return this.code;
        }
    }

}
